import request from '@/utils/request'

// 查询电梯信息列表
export function listAfElevatorInfo(query) {
  return request({
    url: '/security/afElevatorInfo/list',
    method: 'get',
    params: query
  })
}

// 查询电梯信息详细
export function getAfElevatorInfo(id) {
  return request({
    url: '/security/afElevatorInfo/' + id,
    method: 'get'
  })
}

// 新增电梯信息
export function addAfElevatorInfo(data) {
  return request({
    url: '/security/afElevatorInfo',
    method: 'post',
    data: data
  })
}

// 修改电梯信息
export function updateAfElevatorInfo(data) {
  return request({
    url: '/security/afElevatorInfo',
    method: 'put',
    data: data
  })
}

// 删除电梯信息
export function delAfElevatorInfo(id) {
  return request({
    url: '/security/afElevatorInfo/' + id,
    method: 'delete'
  })
}
export function syncAfElevatorInfo() {
  return request({
    url: '/security/afElevatorInfo/syncElevatorInfo' ,
    method: 'get'
  })
}
